import { createStore } from 'vuex'

export default createStore({
  state: {
    goods: {
      "data": [
        {
          id: 1,
          title: '东鹏特饮维生素功能饮料250ml*6瓶/组柠檬元气儿童混合增强原动力',
          price: '24.00',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i2/725677994/O1CN01ygZj7m28vIhEkZ5Yu_!!0-item_pic.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 2,
          title: '百草味香烤小鸡腿奥尔良味134g（约6只)熟食鸡肉肉干小吃休闲零食',
          price: '25.80',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i4/6000000000807/O1CN01eaxnRx1HpeLUvNOVs_!!6000000000807-0-picassoopen.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 3,
          title: '新边界每日坚果750g礼盒孕妇零食混合坚果30小包装网红干果大礼包',
          price: '39.90',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/6000000006119/O1CN01vxkLx21v4YH5P3Cm6_!!6000000006119-0-picassoopen.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 4,
          title: '日本Deonatulle杜得乐止汗石腋下干爽官方正品露膏softstone女20g',
          price: '79.00',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i3/6000000001859/O1CN015MYwzr1PbT2LZZNH1_!!6000000001859-0-picassoopen.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 5,
          title: '丝飘纸巾卫生纸卷纸12卷餐巾纸卷筒纸厕纸擦手纸家用实惠装',
          price: '8.90',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i4/6000000003837/O1CN01yAEdvn1eDORyilpXz_!!6000000003837-0-picassoopen.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 6,
          title: '珍视明花青素护眼贴膜冷敷润眼贴男女通用型护眼贴正品7对',
          price: '39.00',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i2/6000000000088/O1CN01cIIKt11CWLanrJjiZ_!!6000000000088-0-picassoopen.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 7,
          title: '维德医疗一次性医用外科口罩50只灭菌三层过滤无菌熔喷布花色随机',
          price: '42.00',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i4/6000000007367/O1CN01e5lqCk24I8YmR7eWw_!!6000000007367-0-picassoopen.jpg_220x10000Q75.jpg_.webp'
        }, {
          id: 8,
          title: '固本堂传统口味阿胶糕即食纯山东手工阿胶固元膏会员试吃体验10g',
          price: '12.00',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i3/6000000007202/O1CN01R668kf234ZDEp4AVe_!!6000000007202-0-picassoopen.jpg_220x10000Q75.jpg_.webp'
        }, {
          id: 9,
          title: '有友山椒凤爪168g鸡爪特产网红泡椒儿时怀旧辣零食夜宵食品即食',
          price: '16.90',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i4/6000000001335/O1CN011xTh801LjTUipch8o_!!6000000001335-0-picassoopen.jpg_220x10000Q75.jpg_.webp'
        }
        , {
          id: 10,
          title: '自嗨锅方便速食川味麻辣烫143gx1桶夜宵锅解馋暖胃懒人自热小火锅',
          price: '15.80',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i4/6000000000208/O1CN0179PSoj1DPJ6TibZP2_!!6000000000208-0-picassoopen.jpg_220x10000Q75.jpg_.webp'
        }


      ],
      "international": [
        {
          id: 1,
          title: '【特惠款】TOMMY HILFIGER汤米美版男装正品保暖套头针织衫毛衣',
          price: '334.00',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/2206604872698/O1CN01EyFECA1VnjJDxjbqR_!!0-item_pic.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 2,
          title: '2瓶*400ml韩国爱茉莉RYO红吕洗发水洗发露洗头膏正品进口洗头水',
          price: '59.00',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i2/2206736426581/O1CN01U6qvpI1yU9FcB5PxV_!!2206736426581-0-sm.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 3,
          title: 'Laciate卢森牧场进口牛奶脱脂纯牛奶儿童早餐500ml*8整箱波兰乳糖',
          price: '45.8',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/2549841410/O1CN01MMG5yH1MHpCY2jk58_!!2549841410-0-sm.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 4,
          title: '德国Ohrfrieden安耳悠soft耳塞睡觉专用隔音睡眠工作学生降噪',
          price: '21.9',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/2206761970875/O1CN01L11aEd28vIoKukU75_!!6000000007994-0-at.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 5,
          title: '德国SOS复发性口腔溃疡胶凝胶上火起泡舌炎口疮牙龈止痛消炎15ml',
          price: '99',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/2867492502/O1CN01164aLV1ULxftaQT6U_!!0-item_pic.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 6,
          title: '法国维克耳漂新一代犬猫耳道清洁剂60ml宠物狗狗猫耳朵清洗液进口',
          price: '100',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/2807304908/O1CN016SoGKc1m7udk96peW_!!2807304908-0-sm.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 7,
          title: '【直营】 NUK婴儿湿巾手口袋装80抽3包宝宝新生儿屁屁加厚湿纸巾',
          price: '39.90',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i2/6000000003912/O1CN01fu5aB91eljxhMol81_!!6000000003912-0-at.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 8,
          title: 'bioisland/佰澳朗德专用DHA藻油滴剂护眼胶囊6月婴幼儿童60粒*2瓶',
          price: '158',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/upload/i1/6000000001102/O1CN019IIISM1K0lD05J9lu_!!6000000001102-0-yinhe.jpg_Q75.jpg'
        },
        {
          id: 9,
          title: 'Swisse 斯维诗娘娘钙VD柠檬酸钙补钙孕妇钙片150片成人维生素孕期',
          price: '111',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/i4/2549841410/O1CN01vQNzTp1MHpC2DJtgs_!!2-item_pic.png'
        },
        {
          id: 10,
          title: '正官庄韩国6年根红参高丽参伊朗石榴液饮品人参滋补浓缩液旗舰店',
          price: '269',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/bao/upload/O1CN013Cli1v1GfHkZCoUMx_!!6000000000649-2-yinhe.png  '
        },

      ],
      "like": [
        {
          id: 1,
          title: 'Swisse斯维诗维生素c泡腾片20片高浓度VC草莓味成人 ',
          price: '48.00',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/upload/i2/6000000004096/O1CN014R7PJY1g80vD9WJbs_!!6000000004096-0-yinhe.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 2,
          title: '百草味-坚果零食大礼包 小吃女生一整箱网红宿舍休闲小零食组合',
          price: '66.7',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/i4/628189716/O1CN01njea0o2Ldyus0So8m_!!2-item_pic.png_220x10000.jpg_.webp'
        },
        {
          id: 3,
          title: '【三只松鼠_手撕面包1kg】早餐整箱零食小吃休闲食品蛋糕全麦健康',
          price: '29.9',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/upload/O1CN01vbNVMV20gAs5L6ZJf_!!6000000006878-0-yinhe.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 4,
          title: '维达超韧手帕纸4层8张18包小包餐巾纸卫生纸巾面巾纸抽纸新旧交替',
          price: '9.9',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/upload/i3/6000000007863/O1CN01oCQ34I27xIu1eCgpI_!!6000000007863-0-yinhe.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 5,
          title: '全棉时代洗脸巾擦脸巾平纹洁面巾纯棉棉柔巾家用100抽*1包洗面巾',
          price: '22.9',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/i2/725677994/O1CN01JdXfEi28vItNXmuZo_!!2-item_pic.png_220x10000.jpg_.webp'
        },
        {
          id: 6,
          title: '兰蔻明星尝鲜礼盒 明星产品体验装5选4 赠20元回购券',
          price: '25.0',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/i4/2360209412/O1CN01GtiUgC2JOkU0g1Gpz_!!2-item_pic.png_220x10000.jpg_.webp'
        },
        {
          id: 7,
          title: '新鲜沃柑3斤装 芭芭农场专用兑换品 有问题请咨询客服',
          price: '15.8',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/i4/2772080898/O1CN01ptpHVK1IVKPMLyqa4_!!2-item_pic.png_220x10000.jpg_.webp'
        },
        {
          id: 8,
          title: 'la有氧洗威露士内衣洗衣液300ml内裤清洁去血渍除菌新旧包装随机',
          price: '36.5',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/upload/i1/6000000001245/O1CN01tQODFn1L4FlJEo2Mn_!!6000000001245-0-yinhe.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 9,
          title: 'la有氧洗威露士抗菌洗衣液松木2斤手洗除菌去渍新旧包装随机发',
          price: '29.9',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/upload/i1/6000000002334/O1CN01uk8aUO1T714nlAaAb_!!6000000002334-0-yinhe.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 10,
          title: '维达超韧无芯卷纸4层78克10卷纸巾卫生纸厕纸手纸家用实惠装',
          price: '10.9',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/bao/upload/O1CN01pgZ5ej1XZeLRMRTAn_!!6000000002938-2-yinhe.png_220x10000.jpg_.webp'
        },
        {
          id: 11,
          title: 'Swisse斯维诗维生素c泡腾片20片高浓度VC草莓味成人 ',
          price: '48.00',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/upload/i2/6000000004096/O1CN014R7PJY1g80vD9WJbs_!!6000000004096-0-yinhe.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 12,
          title: '百草味-坚果零食大礼包 小吃女生一整箱网红宿舍休闲小零食组合',
          price: '66.7',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/i4/628189716/O1CN01njea0o2Ldyus0So8m_!!2-item_pic.png_220x10000.jpg_.webp'
        },
        {
          id: 13,
          title: '【三只松鼠_手撕面包1kg】早餐整箱零食小吃休闲食品蛋糕全麦健康',
          price: '29.9',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/upload/O1CN01vbNVMV20gAs5L6ZJf_!!6000000006878-0-yinhe.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 14,
          title: '维达超韧手帕纸4层8张18包小包餐巾纸卫生纸巾面巾纸抽纸新旧交替',
          price: '9.9',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/upload/i3/6000000007863/O1CN01oCQ34I27xIu1eCgpI_!!6000000007863-0-yinhe.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 15,
          title: '全棉时代洗脸巾擦脸巾平纹洁面巾纯棉棉柔巾家用100抽*1包洗面巾',
          price: '22.9',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/i2/725677994/O1CN01JdXfEi28vItNXmuZo_!!2-item_pic.png_220x10000.jpg_.webp'
        },
        {
          id: 16,
          title: '兰蔻明星尝鲜礼盒 明星产品体验装5选4 赠20元回购券',
          price: '25.0',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/i4/2360209412/O1CN01GtiUgC2JOkU0g1Gpz_!!2-item_pic.png_220x10000.jpg_.webp'
        },
        {
          id: 17,
          title: '新鲜沃柑3斤装 芭芭农场专用兑换品 有问题请咨询客服',
          price: '15.8',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/i4/2772080898/O1CN01ptpHVK1IVKPMLyqa4_!!2-item_pic.png_220x10000.jpg_.webp'
        },
        {
          id: 18,
          title: 'la有氧洗威露士内衣洗衣液300ml内裤清洁去血渍除菌新旧包装随机',
          price: '36.5',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/upload/i1/6000000001245/O1CN01tQODFn1L4FlJEo2Mn_!!6000000001245-0-yinhe.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 19,
          title: 'la有氧洗威露士抗菌洗衣液松木2斤手洗除菌去渍新旧包装随机发',
          price: '29.9',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/upload/i1/6000000002334/O1CN01uk8aUO1T714nlAaAb_!!6000000002334-0-yinhe.jpg_220x10000Q75.jpg_.webp'
        },
        {
          id: 20,
          title: '维达超韧无芯卷纸4层78克10卷纸巾卫生纸厕纸手纸家用实惠装',
          price: '10.9',
          isChecked: true,
          num: 2,
          cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/bao/upload/O1CN01pgZ5ej1XZeLRMRTAn_!!6000000002938-2-yinhe.png_220x10000.jpg_.webp'
        }

      ]
    },
    cart: [
      {
        id: '1',
        num: '1',
        isChecked: false,
        shopId: '1',
        title: '东鹏特饮维生素功能饮料250ml*6瓶/组柠檬元气儿童混合增强原动力',
        price: 24.00,
        cover_url:

          'https://gw.alicdn.com/bao/uploaded/i2/725677994/O1CN01ygZj7m28vIhEkZ5Yu_!!0-item_pic.jpg_220x10000Q75.jpg_.webp',
      }, {
        id: '2',
        num: '1',
        isChecked: false,
        shopId: '2',
        title: '百草味香烤小鸡腿奥尔良味134g（约6只)熟食鸡肉肉干小吃休闲零食',
        price: 25.8,
        cover_url: 'https://gw.alicdn.com/bao/uploaded/i4/6000000000807/O1CN01eaxnRx1HpeLUvNOVs_!!6000000000807-0-picassoopen.jpg_220x10000Q75.jpg_.webp'
      },
      {
        id: '3',
        num: '1',
        isChecked: true,
        shopId: '3',
        title: '新边界每日坚果750g礼盒孕妇零食混合坚果30小包装网红干果大礼包',
        price: 39.9,
        cover_url: 'https://gw.alicdn.com/bao/uploaded/i1/6000000006119/O1CN01vxkLx21v4YH5P3Cm6_!!6000000006119-0-picassoopen.jpg_220x10000Q75.jpg_.webp'
      }
    ]
  },
  getters: {
  },
  mutations: {
    add(state, param) {
      state.cart[param].num++
    },
    salu(state, param) {
      state.cart[param].num--
    },
    change(state, param) {
      state.cart[param].isChecked = !state.cart[param].isChecked;
    },
    delshopcart(state, param) {
      state.cart.splice(param, 1);
    },
    addcart(state, param) {
      let data = {}
      data = param;
      state.cart.push(data)
    }
  },
  actions: {
  },
  modules: {
  }
})
